from bs4 import BeautifulSoup
import requests

def getHtml(url):
    req = requests.get(url)
    return req.text
def parseHtml(text):
    soup = BeautifulSoup(text, 'lxml')
    for item in soup.stripped_strings:
        print(repr(item))


if __name__ == '__main__':
    url = "http://neihanshequ.com/bar/1/"
    text = getHtml(url)
    parseHtml(text)


